package com.lesson02_OOP;

// 所有类的父类，基类，超类都是Object
public class Animal  extends Object{
    protected String name = "动物";
    protected String age = "年龄";

    public Animal() {
        System.out.println("Animal实例化");
    }

    public Animal(String test) {
        System.out.println("Animal实例化");
    }

    public void sayHello() {
        System.out.println("动物打招呼");
    }
}

